package com.lagou.mapper;

import com.lagou.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleAnnotationMapper {
    @Select("select * from sys_role r, sys_user_role ur WHERE ur.roleid=r.id and ur.userid = #{uid}")
    List<Role> selectRoleByUserid(Integer uid);
}